package com.rain.cy.framework.condition;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;



/**
 * <p>
 * $
 * </p>
 *
 * @author yuanyixiong
 * @since
 */
public class NotWindowsCondition implements Condition {

    @Override
    public boolean matches(ConditionContext conditionContext, AnnotatedTypeMetadata annotatedTypeMetadata) {
        return !conditionContext.getEnvironment().getProperty("os.name").contains("Windows");
    }

}
